package com.hllxd.hism.star.basic.service.model;

import com.hllxd.hism.star.basic.service.util.Formatter;
import lombok.Data;

/**
 * author: xiyong.lxy
 * date: 2018-7-6 8:34
 */
@Data
public class HealthPoints {
    private String rowkey;
    private Double score;
    /**
     * 共检查10项，其中size项有问题
     */
    private String detail;
    private String createTime;
    private String modifyTime;
    private String reportDate;

    public static HealthPoints build(Double score) {
        HealthPoints thiz = new HealthPoints();
        thiz.score = Formatter.scale(score, 0);
        return thiz;
    }
    public static HealthPoints buildWithDt(Double score,String reportDate) {
        HealthPoints thiz = new HealthPoints();
        thiz.score = Formatter.scale(score,0);
        thiz.setReportDate(reportDate);
        return thiz;
    }
}
